package com.lyf.scm.common.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * description:
 *          GMV目标指标枚举
 * @author: haodong
 * @data: 2020/7/28 13:56
 */
public enum GmvTargetEnum{

    /**
     * 目标GMV
     */
    GMV_TARGET("gmv_target","目标销售额"),
    /**
     *实际GMV
     */
    GMV_REAL_TARGET("gmv_real_target","实际销售额"),
    /**
     *GMV达成率
     */
    GMV_TARGET_AC_RATE("gmv_target_ac_rate","销售额达成率"),
    /**
     * gmv达成差值
     */
    GMV_TARGET_DIFFERENCE("gmv_target_difference","销售额达成差值"),
    /**
     *目标毛利额
     */
    GRO_PRO_TARGET("gross_profit_target","目标毛利额"),
    /**
     *实际毛利额
     */
    GRO_PRO_REAL_TARGET("gross_profit_real_target","实际毛利额"),
    /**
     *毛利额达成率
     */
    GRO_PRO_AC_RATE("gro_pro_ac_rate","毛利额达成率"),
    /**
     * 毛利额达成差值
     */
    GRO_PRO_DIFFERENCE("gro_pro_difference","毛利额达成差值");

    private String columns;
    private String desc;

    GmvTargetEnum(String columns, String desc) {
        this.columns = columns;
        this.desc = desc;
    }
    /**
     * 指标的枚举顺序为excel导出时候指标的顺序
     *
     * @param
     * @return {@link List <String>}
     **/
    public static List<String> getAllTargetsDesc() {
        List<String> targetsDesc = new ArrayList<>();
        for (GmvTargetEnum item : GmvTargetEnum.values()) {
            targetsDesc.add(item.getDesc());
        }
        return targetsDesc;
    }
    public String getColumns() {
        return columns;
    }

    public void setColumns(String columns) {
        this.columns = columns;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
